<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Title</title>
</head>
<body>

</body>
<script>
	// 解构目标 = 解构源
	{
		// 将解构源（对象）中的属性userName,age分别赋值给常量userName,age
		const {userName,age}  = {userName:"zhangsan",age:12};
		console.log(userName,age);// zhangsan 12
	}
	{
		const [d,a,b,c] = [1,2,3,4];
		console.log(a,b,c,d);
	}
</script>
</html>